<template>
  <el-image :src="src">
    <template #error>
      <!-- 无上传图片时 显示默认图片 -->
      <img src="./head.jpg" alt="">
    </template>
  </el-image>
</template>

<script>
export default {
  props: {
    src: {
      type: String,
      required: true
    }
  }
}
</script>
